package com.test.example.controller.sensitive;

import com.xingluo.tools.sensitive.factory.IWordFactory;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * 可以自定义敏感词从数据库读取来源，如果配置了该Factory的Bean，则不再从文件读取敏感词了
 */
//@Component
public class SensitiveWordFactory implements IWordFactory {
    @Override
    public List<String> getWordList() {
        return Arrays.asList("卧槽","哈哈");
    }
}
